//
//  HMMeTableViewController.swift
//  Weibo
//
//  Created by 曾成 on 2017/6/4.
//  Copyright © 2017年 WickzZ. All rights reserved.
//

import UIKit

class HMMeTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        addPushButton()
    }
    
    
    //添加导航栏Push
    private func addPushButton(){
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //push按钮点击事件
    @objc func pushAction(){
        
        let testVC = HMTestViewController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }
}
